package 作业_P93实训;

public class StudentClass {
    private String name;
    private char sex;
    private int age;

    public StudentClass() {
    }

    public StudentClass(String name, char sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public void setInfo(String name, char sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public void getInfo(){
        System.out.println("学生姓名："+this.name);
        System.out.println("性别："+this.sex);
        System.out.println("年龄："+this.age);
    }
}
